import java.math.BigInteger;
import java.util.Scanner;
import static java.lang.System.out;

public class BigInt {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        for (int i = 1; i <= t; i++) {
            BigInteger a = sc.nextBigInteger();
            BigInteger b = sc.nextBigInteger();
            out.printf("Case %d:\n", i);
            out.printf("%s + %s = %s\n", a, b, a.add(b));
        }
    }
}
